package com.qingke.OMS.Command.Imp;

import com.qingke.OMS.Command.Command;
import com.qingke.OMS.Dao.GoodsDao;
import com.qingke.OMS.Pojo.Goods;
import com.qingke.OMS.Unit.Console;

public class setGoodsdesc implements Command{

	@Override
	public void execute() {

		GoodsDao gdao=new GoodsDao();
        int pid=Console.askUserInputInt("Please enter goods' pid");
       String pdesc=Console.askUserInput("Please enter goods' pdesc");
        Goods goods = new Goods();
		goods.setPid(pid);
		goods.setPdesc(pdesc);
		gdao.setGoodsdesc(pdesc, pid);
		
	}

	
}
